Skip to content

Added staticfiles panel class. #494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Dec 14, 2013
Merged

Added staticfiles panel class. #494

merged 12 commits into from
Dec 14, 2013

Conversation

jezdez
Copy link
Contributor

@jezdez jezdez commented Dec 8, 2013

Just a quick dump of my current WIP, @aaugustin. Tests and docs are missing but I'll work on them this week before we do a final release.

@jezdez
Copy link
Contributor Author

jezdez commented Dec 8, 2013

Here's a screenshot: screenshot 2013-12-08 23 41 35

@imom0
Copy link

imom0 commented Dec 8, 2013

👍

from django.contrib.staticfiles.templatetags import staticfiles

from django.utils.translation import ungettext, ugettext_lazy as _
from django.utils.datastructures import SortedDict
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Future-proof version:

try:
    from collections import OrderedDict
except ImportError:
    from django.utils.datastructures import SortedDict as OrderedDict

Both versions currently exist in the code base :-/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(all of them btw)

@jezdez
Copy link
Contributor Author

jezdez commented Dec 9, 2013

Frankly I don't know why that one test fails on Travis, it works locally with Tox.

@aaugustin
Copy link
Contributor

Unfortunately that matches my experience with Travis :(

@jezdez
Copy link
Contributor Author

jezdez commented Dec 10, 2013

I wonder if it's somehow related to the test environments running side by side? In other words, is this an indicator for the code not being threadsafe?

@aaugustin
Copy link
Contributor

The diff looks pretty good, my feedback would be in the realm of "keep deps sorted alphabetically".

So, assuming tox is green, ship it!

aaugustin added a commit that referenced this pull request Dec 14, 2013
@aaugustin aaugustin merged commit dbed3e7 into master Dec 14, 2013
@jezdez jezdez deleted the staticfiles branch December 14, 2013 23:42
ryneeverett pushed a commit to ryneeverett/django-debug-toolbar that referenced this pull request Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants